'use strict';
const db = uniCloud.database()
const weight = db.collection('weight_data')
exports.main = async (event, context) => {
	//event为客户端上传的参数
	let res = await weight.doc(event.id).remove()

	//返回数据给客户端
	return {
		code: 200,
		res
	}
};